package cn.anquing.shardingsphere.demo.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @author wangqq65
 * @since 2021/9/3 15:45
 */
@Data
@Entity
public class Demo implements Serializable {

    @Id
    private Long id;

    @Column(nullable = false)
    private String name;

}
